<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>E-天下商旅-后台管理</title>

<link href="${ctx}/resources/css/page_operat.css" rel="stylesheet" type="text/css">
</head>

<body>
  <body>

<jsp:include page="../commons/header.jsp" >
	 <jsp:param name="currentMenu" value="menu5"/>
</jsp:include>



<div class="main_box">
<div class="main cf">

	<jsp:include page="../commons/left.jsp"></jsp:include>
	<div class="right">
		<div class="right_box">
			<div class="title"><span><a href="#">处理提现</a></span></div>
			<div class="content cf">				
				<div class="change_box">
					<form id="extractForm" action="${ctx}/memberBI/updateBank" method="POST"  >
                        <div>
							<label><i> </i>会员账号</label>
                            <input  readonly="readonly" type="text" class="input" name="baseUsername" value="${memberExtractList.baseUsername.baseUsername}" /><span></span>
                        </div>
                        <div>
							<label><i> </i>会员姓名</label>
                            <input  readonly="readonly" type="text" class="input" name="baseName" value="${memberExtractList.baseUsername.baseName}" /><span></span>
                        </div>
                        <div>
							<label><i> </i>提现金额</label>
                            <input  readonly="readonly" type="text" class="input" name="extractAmount" value="${memberExtractList.extractAmount }" /><span></span>
                        </div>
                        <div>
							<label><i> </i>提现手续费</label>
                            <input  readonly="readonly" type="text" class="input" name="extractHaddingfee" value="${memberExtractList.extractHaddingfee }" /><span></span>
                        </div>
                        <div>
							<label><i> </i>实际打款</label>
                            <input readonly="readonly" type="text" class="input" name="extractAmountFact" value="${memberExtractList.extractAmountFact }" /><span></span>
                            <input type="hidden" class="input" name="id" value="${memberExtractList.id }" /><span></span>
                        </div>
                        <div>
							<label><i> </i>处理状态</label>
                             <select id="extractState" value="${memberExtractList.extractState}" class="select" name="extractState">
				    		         <option value="0">未处理</option>										
									 <option  value="1">处理成功</option>	
									 <option  value="2">处理失败</option>														         						
					         </select><span></span>
                        </div>
                        <div>
 							<label>&nbsp;</label>
							<input type="submit" class="submit btn_orange" value="确定提交操作" />
                        </div>
					</form>
				</div>
			</div>
		</div>
	</div>
		
</div>
</div>

<jsp:include page="/WEB-INF/jsp/commons/footer.jsp"></jsp:include>

<script src="${ctx}/resources/script/validate/jquery-1.4.min.js" type="text/javascript"></script>
<script src="${ctx}/resources/script/common.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/jquery.validate.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/jquery.metadata.js"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/additional-methods.js" charset="utf-8"></script>
<script type="text/javascript" src="${ctx}/resources/script/validate/messages_cn.js" charset="utf-8"></script>
<script type="text/javascript">

function submitForm(){
    var url = "${ctx}/withdrawals/backstage/processExtract?timestap="+(new Date()).valueOf();
    $.ajax({
        type: "post",
        async:false,
        url: url,
        dataType: "json",
        data:$("#extractForm").serialize(),
        success: function(getmsg){  		            
        	 alert(getmsg.context);	
        	 window.location.href="${ctx}/withdrawals/backstage/list?timestap="+(new Date()).getTime();
        }
    });

   }
 $(function(){
   $("#extractForm").validate({		
	submitHandler:function(form){
		submitForm();
	}	
  });
});
 
</script>
</body>
</html>

